home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 24 / MacFormat n. 24 (Spain) / MacFormat 24.bin / Demos / Scrutiny Demo / ScruTiny Demo / ScruTiny Demo.dxr / 00001.ls next >
Encoding:
Text File  |  1996-03-11  |  1.7 KB  |  66 lines

  1. global kIntroMovie, kStartMovie, vPlayingFromHardDisk, gOrigColorDepth, gMovieF, gTopLevelF, gHideFinder, gMainFeature
  2.  
  3. on hInitGlobals
  4.   set vPlayingFromHardDisk to 0
  5.   set gTopLevelF to the pathName
  6.   setAt(the searchPath, 1, EMPTY)
  7.   set kIntroMovie to EMPTY
  8. end
  9.  
  10. on initFinderHider
  11.   set gHideFinder to FinderHider(mnew)
  12.   if objectp(gHideFinder) then
  13.     if gHideFinder(mSetBorderColor, 255) then
  14.       set errNum to gHideFinder(mGetErrorNumber)
  15.       put gHideFinder(mGetErrorText, errNum)
  16.     end if
  17.     if gHideFinder(mShowBorder, 1) then
  18.       set errNum to gHideFinder(mGetErrorNumber)
  19.       put gHideFinder(mGetErrorText, errNum)
  20.     end if
  21.     if gHideFinder(mShowBorder, 1) then
  22.       set errNum to gHideFinder(mGetErrorNumber)
  23.       put gHideFinder(mGetErrorText, errNum)
  24.     end if
  25.     if gHideFinder(mUpdateBorder) then
  26.       set errNum to gHideFinder(mGetErrorNumber)
  27.       put gHideFinder(mGetErrorText, errNum)
  28.     end if
  29.   end if
  30. end
  31.  
  32. on startMovie
  33.   if the quickTimePresent then
  34.     hInitGlobals()
  35.     set the searchCurrentFolder to 0
  36.     cursor(200)
  37.     set gOrigColorDepth to the colorDepth
  38.     set lForceColorDepth to 8
  39.     if lForceColorDepth then
  40.       if the colorDepth <> lForceColorDepth then
  41.         set the colorDepth to lForceColorDepth
  42.       end if
  43.     end if
  44.     set the centerStage to 1
  45.   else
  46.     set str to QUOTE & "QuickTime" & QUOTE & " is not installed. Please refer to the instructions"
  47.     set str to str && "to find out how to install QuickTime."
  48.     alert(str)
  49.     quit()
  50.   end if
  51. end
  52.  
  53. on doMainFeature
  54.   global gMainFeature
  55.   if the machineType < 256 then
  56.     set gMainFeature to kIntroMovie & "ScruTiny Mac P"
  57.   else
  58.     set gMainFeature to kIntroMovie & "SCRUTIP.DIR"
  59.   end if
  60.   go(1, gMainFeature)
  61. end
  62.  
  63. on stopMovie
  64.   cursor(-1)
  65. end
  66.